<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                template="layout/template.xhtml">
                       
<ui:define name="body">
    
    <h:messages globalOnly="true" styleClass="message" id="globalMessages"/>
    
    <rich:panel>
        <f:facet name="header">#{messages['application.endereco.label']}</f:facet>

        <s:decorate id="idtCep" template="layout/display.xhtml">
            <ui:define name="label">#{messages['application.endereco.label.cep']}</ui:define>
            #{enderecoHome.instance.idtCep}
        </s:decorate>

        <s:decorate id="desLogradouro" template="layout/display.xhtml">
            <ui:define name="label">#{messages['application.endereco.label.logradouro']}</ui:define>
            #{enderecoHome.instance.desLogradouro}
        </s:decorate>

        <s:decorate id="desBairro" template="layout/display.xhtml">
            <ui:define name="label">#{messages['application.endereco.label.bairro']}</ui:define>
            #{enderecoHome.instance.desBairro}
        </s:decorate>

        <s:decorate id="desCidade" template="layout/display.xhtml">
            <ui:define name="label">#{messages['application.endereco.label.cidade']}</ui:define>
            #{enderecoHome.instance.desCidade}
        </s:decorate>

        <s:decorate id="desUf" template="layout/display.xhtml">
            <ui:define name="label">#{messages['application.endereco.label.estado']}</ui:define>
            #{enderecoHome.instance.desUf}
        </s:decorate>

        <div style="clear:both"/>
        
    </rich:panel>
    
    <div class="actionButtons">      

        <s:button view="/EnderecoEdit.xhtml" 
                    id="edit" 
                 value="#{messages['application.label.edit']}"/>

        <s:button view="/#{empty enderecoFrom ? 'EnderecoList' : enderecoFrom}.xhtml"
                    id="done"
                 value="#{messages['application.label.done']}"/>

    </div>

</ui:define>

</ui:composition>
